package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author xuchangshuo
 * @date 2020/8/15 11:48
 */
@Controller
@RequestMapping("/index")
public class ToIndexController {

    @RequestMapping("/toIndex")
    public String toIndex(){
        return "static/index";
    }

    @RequestMapping("/toString")
    @ResponseBody
    public String toString(){
        return "hhhhh";
    }
}
